package com.ck.client.dao;

import com.ck.common.model.DeviceSetting;
import org.apache.ibatis.annotations.Param;

public interface DeviceSettingMapper {

	/**
	 * 保存终端设置信息
	 *
	 * @param deviceSetting DeviceSetting类型对象
	 */
	int saveDeviceSetting(DeviceSetting deviceSetting);

	/**
	 * 通过mac获取终端设置信息
	 *
	 * @param deviceCode   终端code
	 * @return DeviceSetting
	 */
	DeviceSetting getDeviceSetting(@Param("deviceCode") String deviceCode);

	/**
	 * 更新终端设置信息
	 *
	 * @param deviceSetting DeviceSetting类型对象
	 */
	int updateDeviceSetting(DeviceSetting deviceSetting);

}
